home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_usrdoc / PCMCIA-C.{1O / MAKEFILE.{_4 < prev    next >
Text File  |  1999-09-17  |  1KB  |  43 lines

  1. #
  2. # Makefile 1.32 1998/09/15 00:10:24 (David Hinds)
  3. #
  4.  
  5. DIRS = modules clients cardmgr flash debug-tools man etc
  6.  
  7. help:
  8.     @echo "Pick one of the following targets:"
  9.     @echo -e "\tmake clean\t\t- remove old binaries and dependency files"
  10.     @echo -e "\tmake config\t\t- configure and check system setup"
  11.     @echo -e "\tmake all\t\t- build modules and programs"
  12.     @echo -e "\tmake install\t\t- install modules and programs"
  13.  
  14. config .prereq.ok:
  15.     @./Configure
  16.  
  17. all:    .prereq.ok kcheck
  18.     set -e ; for d in $(DIRS) ; do $(MAKE) -C $$d ; done
  19.     for f in *.mk ; do if [ $$f != config.mk ] ; then \
  20.         $(MAKE) -f $$f all ; \
  21.     fi ; done
  22.  
  23. clean:
  24.     set -e ; for d in $(DIRS) ; do $(MAKE) -C $$d clean ; done
  25.     rm -f .prereq.ok config.mk include/pcmcia/config.h
  26.     rm -f include/linux/modversions.h
  27.  
  28. install: .prereq.ok kcheck
  29.     set -e ; for d in $(DIRS) ; do $(MAKE) -C $$d install ; done
  30.     for f in *.mk ; do if [ $$f != config.mk ] ; then \
  31.         $(MAKE) -f $$f install ; \
  32.     fi ; done
  33.  
  34. kcheck:
  35.     @. config.out ; \
  36.     if [ "$$CHECK" != "" ] ; then \
  37.         if [ "`cksum < $$CHECK`" != "$$CKSUM" ] ; then \
  38.         /bin/echo -n "Kernel configuration has changed." ; \
  39.         /bin/echo "  Please re-run 'make config'." ; \
  40.         exit 1 ; \
  41.         fi ; \
  42.     fi
  43.